const BaseService = require('./base');

class BookService extends BaseService {
  async getBookList() {
    const { ctx } = this;
    console.log(ctx);
    return this.run(async () => {
      return await ctx.model.Book.findAll();
    });
  }
}

module.exports = BookService;
